#!/usr/bin/bash 

sudo apt install libjsoncpp

if [ -e ./.sa ]; then
    echo "存在管道"
else
    mkfifo .sa
fi

gnome-terminal -- bash -c 'cat < .sa; exec bash'

./client $1 $2 2> .sa

